CREATE TABLE ${tableName} (
	<#list attributes as attribute>
		<#if !(attribute.transient)>
	${attribute.columnName} ${attribute.columnType}<#if attribute.mandatory || attribute.identifier> NOT NULL</#if><#if attribute.defaultValue??> DEFAULT ${attribute.defaultValue}</#if>,
		</#if>
	</#list>
	CONSTRAINT ${primaryKeyName} PRIMARY KEY (${identifier.columnName})
);

	<#list uniqueConstraints as uc>
CREATE UNIQUE INDEX ${uc.name} ON ${tableName} (<#list uc.attributes as a>${a.columnName}<#if a_has_next>, </#if></#list>);
	</#list>
